<html>
	<head>
		<title>phpNMS <?=$nms->getVersion()?></title>
		<link rel="stylesheet" type="text/css" href="/css/nms.ui.css" />
		<link rel="stylesheet" type="text/css" href="/css/nms.home.css" />
		<link rel="stylesheet" type="text/css" href="/css/nms.devices.css" />
		
		<link rel="stylesheet" type="text/css" href="/css/nms.device.css" />
		<link rel="stylesheet" type="text/css" href="/css/nms.device.switch.css" />
		<link rel="stylesheet" type="text/css" href="/css/jquery.tooltip.css" />
		<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="/js/jquery.tooltip.pack.js"></script>
		<script type="text/javascript" src="/js/jquery.dialog.js"></script>
		<script type="text/javascript" src="/js/jquery.easing.1.1.1.js"></script>
		<script type="text/javascript" src="/js/nms.js"></script>
<?
	$browser = get_browser();
	
	/*print_r($browser);
	exit();
	switch ($browser->browser) {
		case 'Chrome':
		case 'Safari':
			break;
		case 'Firefox':
			if ($browser->version < 3.6) {
				echo '		<link rel="stylesheet" type="text/css" href="/css/nms.css2.css" />';
			}
			break;
		case 'Mozilla':
			if ($browser->version >= 1.9) {
				echo '		<link rel="stylesheet" type="text/css" href="/css/nms.css2.css" />';
			} else {
				header('Location:/unsupported_browser.html');
				exit();
			}
			break;
		default:
			header('Location:/unsupported_browser.html');
			exit();
	}*/
	$time = $nms->getPageRefeshTime();
	if ($time != false) {
		echo '<meta http-equiv="refresh" content="'.$time.'">';
	}
?>		
			</head>
	<body class="<?=$nms->getBodyClasses()?>">
		<div class="appbar">
			<a href="http://phpnms.googlecode.com.au/" class="logo"><img src="/img/logo_55x25.png" width="55" height="25" /></a>
			<ul class="modules">
				<li></li>
				<li><a href="/">Status</a></li>
				<li><a href="/map/">Map</a></li>
				<li class="dropdown">
					<a href="/devices/" class="active dropdown">Devices</a>
					<span></span>
					<ul>
						<li><a href="/adddevice/" title="Add Device" class="dialog"><span class="iconPlus"></span>Add Device</a></li>
						<li class="sep"></li>
<?
foreach ($nms->getDeviceTypes() AS $type) {
	echo '<li><a href="/devices/'.$type->type.'/">'.$type->description.'</a></li>';
}
?>
						<li class="sep"></li>
						<li><a href="/devicesearch/" ><span class="iconSearch"></span>Search for Devices</a></li>
					</ul>
				</li>
				<li><a href="/services/">Services</a></li> 
				<li class="dropdown"><a href="/system/">System</a>
					<ul>
						<li><a href="/system/devicegroups/">Device Groups</a></li>
					</ul>
				</li>
			</ul>
			<div class="user">
				<a href="/roadmap/">Development Roadmap</a>	
			</div>
		</div>

